﻿using PlatformNetCore.Common.Utility;
using PlatformNetCore.Entity;
using PlatformNetCore.Entity.Models;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace PlatformNetCore.IService
{
    public interface INewsService
    {
        #region 后台-新闻管理
        LayPager<News> GetNewsPagedList(int pageIndex, int pageSize, Expression<Func<News, bool>> predicate);
        ResultResponse<News> GetNews(string id);
        ResultResponse AddNews(News model,IPathProvider pathProvider);
        ResultResponse UpdateNews(News model);
        ResultResponse CopyNews(string id,string userName);
        ResultResponse UpdateNewsState(List<string> ids, string userName, DataStatus dataStatus);
        #endregion
    }
}
